package com.raos.lottery.redis.dal.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 抽奖记录实体
 *
 * @author raos
 * @emil 991207823@qq.com
 * @date 2021/7/21 23:01
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class LotteryRecord extends Model {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 账户ip
     */
    private String accountIp;

    /**
     * 活动项id
     */
    private Integer itemId;

    /**
     * 奖品名称
     */
    private String prizeName;

    /**
     * 记录创建时间
     */
    private LocalDateTime createTime;


}
